<script>
export default {
    name: "ScTelePort",
    props: {
        to: {
            type: String,
            required: true
        }
    },
    mounted() {
        document.querySelector(this.to).appendChild(this.$el)
    },
    destoryed() {
        this.$el.remove();
    },
    render() {
        return this.$scopedSlots.default()
    }
}
</script>